//api.js

import {
	http
} from '@/utils/http.js';


// 小程序-登录
export const mnpLogin = (data) => {
	return http('/api/login/mnpLogin', 'post', data)
}

// 账号登录
export const account = (data) => {
	return http('/api/login/account', 'post', data)
}


// 退出登录
export const logout = (data) => {
	return http('/api/login/logout', 'get', data)
}

// 政策协议
export const policy = (data) => {
	return http('/api/index/policy', 'get', data)
}

// 个人信息
export const info = (data) => {
	return http('/api/user/info', 'get', data)
}


// 设置用户信息（单个）
export const setInfo = (data) => {
	return http('/api/user/setInfo', 'post', data)
}


// 设置用户信息（批量
export const setpiliangInfo = (data) => {
	return http('/api/user/setpiliangInfo', 'post', data)
}
